package com.yedean.sms.listener;

import com.alibaba.fastjson.JSON;
import com.yedean.constants.SystemCode;
import com.yedean.sms.SmsObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * SmsMessageListener
 *
 * @author yedean
 * @date 2022/9/15
 */
@Component
@Slf4j
public class SmsMessageListener {

    @RabbitListener(queues = SystemCode.SMS_ACCOUNT_QUEUE)
    public void getAccountMessage(String message){
        log.info("发送短信监听类接收到了消息："+message);
        //TODO 进行短信发送
    }
}
